<template>
  <div id="app" :style="bgStyle">
    <transition name="transitionRouter">
      <router-view></router-view>
    </transition>
  </div>
</template>

<script lang="ts">
import Vue from "vue";

export default Vue.extend({
  components: {},
  data() {
    return {
      bgStyle: {
        backgroundImage: 'url(' + require('@/assets/bg.jpeg') + ')' 
      },
    };
  },
});
</script>>




<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

// 页面切换的自定义淡入淡出效果
.transitionRouter-enter-active,
.transitionRouter-leave-active {
  transition: opacity 1.5s;
}

.transitionRouter-enter,
.transitionRouter-leave {
  opacity: 0;
}
</style>
